package com.xyf.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_maintain_shop")
@ApiModel(value="维修厂", description="维修厂信息表")
public class TbMaintainShop {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty(value = "维修厂ID")
  @TableId(value = "id" , type = IdType.AUTO)
  private Integer id;
  @ApiModelProperty(value ="维修厂名字")
  private String name;
  @ApiModelProperty(value ="维修厂地址")
  private String address;
  @ApiModelProperty(value ="维修厂电话")
  private String phoneNum;
//  @ApiModelProperty(value ="维修厂设立时间")
//  private LocalDateTime addtime;
  @ApiModelProperty(value ="备注")
  private String remark;

  @ApiModelProperty(value ="维修时间")
  @TableField(fill = FieldFill.INSERT) //插入时执行
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date addtime;

}
